#pragma once
#include <list>

// CTabCtrlEx

class CTabCtrlEx : public CXTPTabCtrl
{
	DECLARE_DYNAMIC(CTabCtrlEx)

public:
	CTabCtrlEx();
	virtual ~CTabCtrlEx();

protected:
	DECLARE_MESSAGE_MAP()
private:
	afx_msg void OnDestroy();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnCloseTab();

public:
	bool AddTabView(HWND handle, const char* tab_name);
	void CloseActiveTab();
	void Broadcast(UINT msg,WPARAM wp,LPARAM lp);
private:
	std::list<CWnd*> m_wndList;
};


